package com.ruoyi.costumeShop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.costumeShop.mapper.CostumeRefundOrderDetailMapper;
import com.ruoyi.costumeShop.domain.CostumeRefundOrderDetail;
import com.ruoyi.costumeShop.service.ICostumeRefundOrderDetailService;

/**
 * refundOrderDetailService业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-05
 */
@Service
public class CostumeRefundOrderDetailServiceImpl implements ICostumeRefundOrderDetailService 
{
    @Autowired
    private CostumeRefundOrderDetailMapper costumeRefundOrderDetailMapper;

    /**
     * 查询refundOrderDetail
     * 
     * @param refundOrderDetailId refundOrderDetail主键
     * @return refundOrderDetail
     */
    @Override
    public CostumeRefundOrderDetail selectCostumeRefundOrderDetailByRefundOrderDetailId(Long refundOrderDetailId)
    {
        return costumeRefundOrderDetailMapper.selectCostumeRefundOrderDetailByRefundOrderDetailId(refundOrderDetailId);
    }

    /**
     * 查询refundOrderDetail列表
     * 
     * @param costumeRefundOrderDetail refundOrderDetail
     * @return refundOrderDetail
     */
    @Override
    public List<CostumeRefundOrderDetail> selectCostumeRefundOrderDetailList(CostumeRefundOrderDetail costumeRefundOrderDetail)
    {
        return costumeRefundOrderDetailMapper.selectCostumeRefundOrderDetailList(costumeRefundOrderDetail);
    }

    /**
     * 新增refundOrderDetail
     * 
     * @param costumeRefundOrderDetail refundOrderDetail
     * @return 结果
     */
    @Override
    public int insertCostumeRefundOrderDetail(CostumeRefundOrderDetail costumeRefundOrderDetail)
    {
        return costumeRefundOrderDetailMapper.insertCostumeRefundOrderDetail(costumeRefundOrderDetail);
    }

    /**
     * 修改refundOrderDetail
     * 
     * @param costumeRefundOrderDetail refundOrderDetail
     * @return 结果
     */
    @Override
    public int updateCostumeRefundOrderDetail(CostumeRefundOrderDetail costumeRefundOrderDetail)
    {
        return costumeRefundOrderDetailMapper.updateCostumeRefundOrderDetail(costumeRefundOrderDetail);
    }

    /**
     * 批量删除refundOrderDetail
     * 
     * @param refundOrderDetailIds 需要删除的refundOrderDetail主键
     * @return 结果
     */
    @Override
    public int deleteCostumeRefundOrderDetailByRefundOrderDetailIds(Long[] refundOrderDetailIds)
    {
        return costumeRefundOrderDetailMapper.deleteCostumeRefundOrderDetailByRefundOrderDetailIds(refundOrderDetailIds);
    }

    /**
     * 删除refundOrderDetail信息
     * 
     * @param refundOrderDetailId refundOrderDetail主键
     * @return 结果
     */
    @Override
    public int deleteCostumeRefundOrderDetailByRefundOrderDetailId(Long refundOrderDetailId)
    {
        return costumeRefundOrderDetailMapper.deleteCostumeRefundOrderDetailByRefundOrderDetailId(refundOrderDetailId);
    }
}
